<html>
    <head>
        <title>hello freemarker</title>
    </head>

    <body>
        <h2>${name}</h2>
        <hr/>
        <table>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>日期</th>
            </tr>
            <#list stuList as stu>
                <#if stu_index % 2 == 0>
                    <tr bgcolor="aqua">
                <#else>
                    <tr bgcolor="#7fff00">
                </#if>
                    <td>${stu.stuName}</td>
                    <td>${stu.stuAge!"年龄未填"}</td>
                    <td>${stu.time?string("yyyy/MM/dd HH:mm:ss")}</td>
                </tr>
            </#list>
        </table>
    </body>


</html>